package homework.day08;

/**
 * @author ThinkBook
 */
public class Test08 {
    public static void main(String[] args) {
        Integer i1 = new Integer(97);
        Integer i2 = new Integer(97);
//        Integer i1 = Integer.valueOf(97);   相当于现在的Integer i1 = 97;
//        Integer i2 = Integer.valueOf(97);   i1 == i2 ->true
        System.out.println(i1 == i2); // false
        System.out.println(i1.equals(i2)); // true


    }
}
